package com.ktwlrj.securitycenter.controller.args;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 审批处理入参
 *
 * @author lisc
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@ApiModel(value = "审批处理入参", description = "审批处理入参")
public class SafeApproveArgs {
    @ApiModelProperty(name = "approveId", value = "审批主键id")
    @NotBlank(message = "审批主键id不能为空")
    private String approveId;

    @ApiModelProperty(name = "businessId", value = "业务id")
    @NotBlank(message = "业务id不能为空")
    private String businessId;

    @ApiModelProperty(name = "handleResult", value = "处理结果(1.审批通过,2.驳回)")
    @NotNull(message = "处理结果不能为空")
    @Range(min=1, max=2,message = "审批结果不在合理范围内：1.审批通过,2.驳回")
    private Integer handleResult;

    @ApiModelProperty(name = "handleOpinions", value = "处理意见")
    private String handleOpinions;

    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
}
